package sctu.edu.java.year2016.team03.huzhou.textwork.day20160531;

import com.sun.org.apache.xerces.internal.xs.XSNamedMap;
import javafx.collections.ObservableMap;

import java.util.*;

/**
 * Created by Administrator on 2016/5/31.
 */
public class Client {
    public static void main(String[] args) {
        //实例化对象一
        BestNumber Somebody=new Student();
        Somebody.MyNumber();
        //实例化对象二
        BestNumber Otherbody=new Techer();
        Otherbody.MyNumber();
        //实例化对象三
        Student Anybody=new Student();
        Anybody.MyNumber();

        Student Amy=new Student();
        Amy.MyNumber();

        Student Kitty=new Student();
        Kitty.MyNumber();

        List<Student>newList=new ArrayList<>();
        newList.add(Anybody);
        newList.add(Amy);
        newList.add(Kitty);
        System.out.println("The list's size is : " + newList.size());
        System.out.println(newList.toArray());

        Map<String,Student>newMap=new IdentityHashMap<>();
        newMap.put("I catch the frist rabbit",Anybody);
        newMap.put("Mom catch the second rabbit",Amy);
        newMap.put("Dad catch the last rabbit",Kitty);
        newMap.put("Dad catch the last rabbit",Kitty);
        System.out.println("The newMap's size is :" + newMap.size());
        System.out.println(newMap.keySet());



    }




}

